package com.example.onlineanswer.model.vo;

import com.example.onlineanswer.model.entity.Question;
import com.example.onlineanswer.model.entity.QuestionOption;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 题目展示对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "题目展示对象", description = "包含题目类型名称和竞赛标题等额外信息")
public class QuestionVO extends Question {

    private static final long serialVersionUID = 1L;

    /**
     * 竞赛标题
     */
    @ApiModelProperty(value = "竞赛标题")
    private String contestTitle;

    /**
     * 题目类型名称
     */
    @ApiModelProperty(value = "题目类型名称")
    private String typeName;

    /**
     * 选项列表
     */
    @ApiModelProperty(value = "选项列表")
    private List<QuestionOption> options;
} 